﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateStepNotificationConfig
{
	/// <summary>
	/// 工作流模板步骤通知配置
	/// </summary>
	public class WorkflowTemplateStepNotificationConfigRequestDto
	{
		/// <summary>
		/// 工作流模板Code
		/// </summary>		
		[Display(Name = "工作流模板Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateCode { get; set; }
		/// <summary>
		/// 工作流模板名称
		/// </summary>		
		[Display(Name = "工作流模板名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateName { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateStepCode { get; set; }
		/// <summary>
		/// 通知时间（时）
		/// </summary>		
		[Display(Name = "通知时间（时）")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int NotificateHour { get; set; }
		/// <summary>
		/// 通知间隔（时）
		/// </summary>		
		[Display(Name = "通知间隔（时）")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int NotificateIntervalHour { get; set; }
	}
}

